<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<link rel="stylesheet" href="/css/message.css" type="text/css" media="all" />

<h2 style="margin-left: 2%;">Thêm sinh viên</h2>
<hr size="1" />

<div style="display: block; height: 40px"></div>
<div class="box">
	<h3 class="boxTitle">Thêm sinh viên</h3>
	<form:form commandName="createStudentViewModel" method="POST" id="createStudentForm">
		<form:errors path="*" cssClass="errorblock" element="div" />
		<table align="center">
			<tr>
				<td>Mã số sinh viên (*)</td>
				<td><form:input path="studentId" id="studentId" cssClass="inputField" /></td>
			</tr>
			<tr>
				<td>Tên sinh viên (*)</td>
				<td><form:input path="studentName" id="studentName" cssClass="inputField" /></td>
			</tr>
			<tr>
				<td>Email (*)</td>
				<td><form:input path="studentEmail" id="studentEmail" cssClass="inputField" /></td>
			</tr>
			<tr>
				<td>Lớp (*)</td>
				<td>
					<form:select path="className" cssClass="inputField">
						<form:option value="NONE" label="--Chọn lớp--" />
						<form:options items="${classes}" />
					</form:select>
				</td>
				<td>Khóa (*)</td>
				<td>
					<form:select path="course" cssClass="inputField">
						<form:option value="NONE" label="--Chọn khóa--" />
						<form:options items="${courses}" />
					</form:select>
				</td>
			</tr>
			<tr>
				<td>Active ?</td>
				<td><form:checkbox path="active" id="active" cssClass="checkBox" /></td>
			</tr>
			<tr>
				<td colspan="2" align="center"><input type="submit" value="Thêm mới" /></td>
			</tr>
		</table>
	</form:form>
</div>